<h2 align="center">ES Search</h2>

<div id="indexSearch">
    <?php
    $this->searchForm->setAction(
            $this->url(array('controller' => 'search'),'search',true)
    );
    ?>

    <?php echo $this->searchForm ?>
</div>


<div id="stats">
    <?php $stats = $this->stats(); ?>

    <table>
        <tr>
            <td>
                Unique Mods:
            </td>
            <td>
                <?php echo $stats['ModCount'] ?>
            </td>
        </tr>

        <tr>
            <td>
                Oblivion:
            </td>
            <td>
                <?php echo $stats['Games'][4] ?>
            </td>
        </tr>

        <tr>
            <td>
                Morrowind:
            </td>
            <td>
                <?php echo $stats['Games'][3] ?>
            </td>
        </tr>

        <tr>
            <td>
                Newest Mod:
            </td>
            <td>
                <?php $mod = $stats['Newest'] ?>
                <a href="mods/<?php echo $mod['id'] ?>/<?php echo $this->seoString($mod['name']) ?>">
                    <?php echo $mod['name'] ?>
                </a>
            </td>
        </tr>

    </table>
</div>

<div id="intro">
    <p>
        ES Search is a search engine that searches various Morrowind and Oblivion mod sites.
    </p>

    <p>

    </p>
</div>